﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PSE.ProcessManager.Common.Gateway;

namespace PSE.ProcessManager.Server.InteligenceModules
{
    internal class SimpleExecutionProcessExecutor : BaseProcessExecutor, ISimpleExecutionProcess
    {
        public void Execute(BaseMessage message)
        {
            if (Gateway == null)
                throw new Exception();

            if(Message == null)
                throw new Exception();

            Message.Operation = "Execute";
            this.Gateway.BeginSendMessage(Message);
        }
    }
}